<!DOCTYPE html>
<html>
<head>
    <title>招聘系统</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
    <a class="navbar-brand" href="#index.html">首页</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="collapsibleNavbar">
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link" href="personalpossition.html">发布职位管理</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="login.html">用户登录</a>
            </li>
        </ul>
    </div>
</nav>
<div class="container">
    <!-- 按钮：用于打开模态框 -->
<!--    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">-->
<!--        发布职位-->
<!--    </button>-->
    <h2>所有职位</h2>
<!--    <form class="form-inline"  style="margin-top:10px">-->
<!--        <label >模板名字:</label>-->
<!--        <input type="text" class="form-control" id="byName">-->
<!--        <label >&nbsp&nbsp类型:</label>-->
<!--        <select class="form-control" id="byType">-->
<!--            <option value="0">Word</option>-->
<!--            <option value="1">PDF</option>-->

<!--        </select>-->

<!--        &nbsp&nbsp<a  class="btn btn-primary" id="searchbtn">搜索</a>-->
<!--    </form>-->
    <div class="table-responsive" style="margin-top:10px">
        <table class="table table-bordered">
            <thead>
            <tr>
                <th>职位名称</th>
                <th>工作内容</th>
                <th>学历要求</th>
<!--                <th>资薪范围</th>-->
<!--                <th>工作经验</th>-->
<!--                <th>需求人数</th>-->
<!--                <th>工作地点</th>-->
<!--                <th>发布时间</th>-->
                <th>操作</th>
            </tr>
            </thead>
            <tbody id="databody">

            </tbody>
        </table>
    </div>
    <div class="row">
        <div class="col-sm-3"></div>
        <div class="col-sm-6">
            <ul class="pagination">

            </ul>

        </div>
        <div class="col-sm-3"></div>
    </div>

</div>



<!-- 模态框 -->
<div class="modal fade" id="moreModal">
    <div class="modal-dialog">
        <div class="modal-content">

            <!-- 模态框头部 -->
            <div class="modal-header">
                <h4 class="modal-title">职位详情</h4>
            </div>

            <!-- 模态框主体 -->
            <div class="modal-body">
            <table>
                <tbody id="morebody">

                </tbody>
            </table>

            </div>

            <!-- 模态框底部 -->
            <div class="modal-footer">
                <a href="index.html"><button>关闭</button></a>
            </div>

        </div>
    </div>
</div>

<!-- 模态框 -->
<div class="modal fade" id="fileModal">
    <div class="modal-dialog">
        <div class="modal-content">

            <!-- 模态框头部 -->
            <div class="modal-header">
                <h4 class="modal-title">简历上传</h4>
            </div>

            <!-- 模态框主体 -->
            <div class="modal-body">
                <form id="formId" action="/job/file/upload" target="frame1" method="POST" enctype="multipart/form-data">
                    <input type="hidden" name="fileuploadid"></input>
                    <input type="text" name="username" placeholder="个人姓名"></input>
                    <input type="file" name="file"/>
                    <input type="button" value="提交" onclick="upload()">
                </form>

            </div>

            <!-- 模态框底部 -->
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
            </div>

        </div>
    </div>
</div>







<script type="text/javascript" src="/job/js/possition.js">

</script>
<script type="text/javascript">
function upload() {
$("#formId").submit();
}
</script>
</body>
</html>
